<!DOCTYPE html>
<html ng-app="myApp">
	<head>
		<meta charset="utf-8">
		<title>Simple app</title>
		<script type="text/javascript" src="../angular.min.js"></script>
	</head>
	<body  ng-controller="MyCtrl">
		
		<h1>
			Hello {{name}}
		</h1>
		<h3 ng-click="hello()">
			yes today
		</h3>
		<script type="text/javascript" src="../jquery-1.11.0.js"></script>
		<script type="text/javascript">
		//不建议这样声明 因为这样声明会污染全局命名空间
//		angular.module('myApp',[]).controller('MyCtrl',function($scope){
//			$scope.name = 'yestoday';
//		})
		//可以这样写
		var app = angular.module('myApp',[]);
		app.controller('MyCtrl',function($scope){
			$scope.name = 'hello world';
		})
		</script>
	</body>
</html>
